import { createVNode, render, createApp } from 'vue'
import Index from './index.vue'
import { ElDialog } from 'element-plus'
type DefaultProps = {
  /**header 显示内容，于dialog的tilte不一样 */
  header: string
  content: string
}
export type IDialogProps = Partial<DefaultProps> & InstanceType<typeof ElDialog>['$props']

/**
 * @description 自定义消息提示弹窗，使用js调用的方式，方便使用,在回调then触发confirm
 * @param dialogProps
 * @returns
 */
export const useContent = async (el: HTMLElement) => {
  const vNode = createVNode(Index)
  render(vNode, el)
}
// #EB8686
